home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 22 / AMUG_22-1.ISO / Files / Internet / Web Things / HTML 201.sit / HTML 201 / HTML 201.rsrc / TEXT_133.txt < prev    next >
Encoding:
Text File  |  1996-03-13  |  3.8 KB  |  89 lines

  1.  
  2. Links
  3.  
  4. In this section I'll cover the following links:
  5.  
  6. ‚Ä¢to other sites on the WWW
  7. ‚Ä¢email 
  8. ‚Ä¢to text on the same page
  9. ‚Ä¢to your other web pages on your server
  10.  
  11. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  12.  
  13. Links to other sites on the WWW
  14.  
  15. You might want to link your web page with another web page at a different site. The HTML code you use is the anchor tag:
  16.  
  17. <A> </A>
  18.  
  19. To make this a live link you need to specify a hypertext reference attribute. This attribute needs to be set to a value. So a live link will look like this:
  20.  
  21. <A HREF="value"> </A>
  22.  
  23. Value could be the *URL of another site or the file name of another page on your server.
  24.  
  25. Note: The quote marks surrounding the value have to be straight.
  26.  
  27. The text between the anchor tags will be a different color and underlined. This tells the reader that this is an active link and clicking on it will cause a specific action depending on the link.
  28.  
  29. ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  30.  
  31. Links to email
  32.  
  33. This link will involve the anchor tags with a twist:
  34.  
  35. <A HREF="mailto:email address"> </A> 
  36.  
  37. email address is the address you would like the mail to be sent to.The text between the anchor tags will be a different color and underlined.
  38.  
  39. ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  40.  
  41. Links to text on the same page
  42.  
  43. This link will involve the anchor tags again but it is a little more in depth and slightly different.
  44.  
  45. Say that you have a long document with a lot of information. You can divide this information up into sections. You want to give someone who looks at your page the option of going directly to a section instead of scrolling until their fingers go numb.
  46.  
  47. The anchor point
  48.  
  49. The section you would like to go to is the anchor point.To specify an anchor point you would use the following HTML code at that point in the document:
  50.  
  51. <A NAME="some name">
  52.  
  53. "Some name" is the text you would like the reader to jump to.
  54.  
  55. This would not highlight, underline or change the color of the text that serves as the anchor point. It would serve to identify itself as the anchor point for the jump link.
  56.  
  57. The jump link
  58.  
  59. The jump link would be at the beginning of the document and uses this code:
  60.  
  61. <A HREF="#some name"> </A>
  62.  
  63. "#Some name" would be the same as the anchor point but with the pound sign before it.
  64.  
  65. The text between the two anchor tags would be underlined and a different color to show it was active.It would give the reader some idea of where that link would take them.
  66.  
  67. ••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••
  68.  
  69. Links to your other web pages on your server
  70.  
  71. Again you would use the anchor tags:
  72.  
  73. <A HREF="name.html"> </A>
  74.  
  75. The value between the quotes is just the name of the file you wish to go to on the server.The text between the two anchor tags would be underlined and a different color to show it is active.
  76.  
  77.                    ++++++++++++++++++++++
  78.  
  79. Note: After you click on a link when viewing with your browser, it will usually have changed color when you visit that page again. This identifies that you have visited that link before.
  80.  
  81. Summary
  82.  
  83. Links show as underlined text in a different color when viewed with a browser. When you click on these links, the action that may occur ranges from moving to another web site, moving to another document you have created, moving within the same document or sending email. 
  84.  
  85. Let's go to the drills.There will be four drills for links.
  86.  
  87. * URL- uniform resource locator aka the WWW address for a site.
  88.  
  89.